package com.caojm.mptools;


import com.caojm.mptools.commands.BindCommand;
import com.caojm.mptools.commands.MiningLeaderboardCommand;
import com.caojm.mptools.commands.StatusCommand;
import com.caojm.mptools.commands.UnbindCommand;
import com.caojm.mptools.events.MiningEventListener;
import net.fabricmc.api.ModInitializer;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class Mptools implements ModInitializer {

    public static final String MOD_ID = "mingpixeltools";
    public static final Logger LOGGER = LoggerFactory.getLogger(MOD_ID);

    @Override
    public void onInitialize() {

        // 模组初始化日志
        LOGGER.info("=============================");
        LOGGER.info("MingPixel Tools Mod 初始化...");
        LOGGER.info("MingPixel Tools 作者：明明Uncle");
        LOGGER.info("MingPixel Tools 初始化完成");
        LOGGER.info("=============================");

        // 注册事件监听器
        MiningEventListener.register();

        // 注册命令等
        BindCommand.register();  // 注册绑定命令
        UnbindCommand.register();  // 注册解绑命令
        StatusCommand.register();  // 注册查询状态命令
        MiningLeaderboardCommand.register();  // 注册挖掘排行榜查询命令
    }

    }